<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>class-style</title>
  <script src="../vue.js"></script>
  <style>
    .title {
      color: red;
      font-size: 100px;
    }
    .weight {
      font-weight: 100;
    }
    .italic {
      font-style: italic;
    }
    .decoration {
      text-decoration: underline;
    }
  </style>
</head>
<body>
  <div id="root">
    <h1 class="decoration" :class="[{title: bool, weight: true}, 'italic']">hello</h1>
    <h2 :style="style">world</h2>
  </div>
  <script>
    Vue.config.productionTip = false
    var vm = new Vue({
      el: '#root',
      data: {
        bool: true,
        style: {fontSize: '100px'}
      }
    })
  </script>
</body>
</html>